package com.etung.iot.demo.vo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class AlarmRsp {
    private Long id;
    @ApiModelProperty(notes = "报警ID")
    private Long alarmId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(notes = "报警时间")
    private Date alarmTime;
    @ApiModelProperty(notes = "项目ID")
    private Long projectId;
    @ApiModelProperty(notes = "项目名称")
    private String projectName;
    @ApiModelProperty(notes = "BOX ID")
    private Long boxId;
    @ApiModelProperty(notes = "BOX名称")
    private String boxName;
    @ApiModelProperty(notes = "严重性")
    private Integer serious;
    @ApiModelProperty(notes = "报警详情")
    private String alarmTip;
}
